<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/component/common.jsp" %>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>医卫士云平台登录</title>
    <link rel="stylesheet" href="${rc.contextPath}/newframe/css/base/base.css" />
    <link rel="stylesheet" href="${rc.contextPath}/newframe/template/tpl_css/dwlogin.css" />
    <!--[if lt IE 10]>
    <script type="text/javascript" src="${rc.contextPath}/newframe/template/tpl_js/PIE.js"></script>
    <![endif]-->
</head>
<body style="padding-top: 20px;">
<div id="main">
    <div id="logo" style="margin-left:4.5%;margin-bottom:20px;clear: both">
        <%--        <img src="${rc.contextPath}/newframe/template/images/loginimgs/login_logo.png" height="51" width="262" alt="" />--%>
        <img src="${rc.contextPath}/newframe/template/images/loginimgs/dw.png" width="200" alt="" style="float: left;"/>
        <h2 style="font-size: 32px;padding-top:54px;margin-left:20px;color:#666666;">宁波德魏医疗器械有限公司</h2>
    </div>
    <div id="content">
        <div class="bg"></div>
        <div id="login_msg">
            <div class="loginmsg_logo">
                <h2>医卫士慢病管理平台</h2>
                <%--                <img src="${rc.contextPath}/newframe/template/images/loginimgs/logomsg_bg.png" height="45" width="241"/>--%>
                <%--                <img src="${rc.contextPath}/newframe/template/images/loginimgs/dw.jpg" height="45" width="241"/>--%>
            </div>
            <form id="myForm" role="form" method="post" class="user_form" action="login">
                <p class="user">
                    <label>
                        <img src="${rc.contextPath}/newframe/template/images/loginimgs/user_icon.png" height="22" width="22" alt="" />
                    </label>
                    <input type="text" id="account" name="username" placeholder="账号名称"/>
                </p>
                <p class="psw">
                    <label>
                        <img src="${rc.contextPath}/newframe/template/images/loginimgs/psw_icon.png" height="22" width="22"/>
                    </label>
                    <input type="password" id="pwd" name="password" placeholder="密码"/>
                </p>
                <div class="about_psw">
                    <input type="checkbox" class="remember"/>
                    <label>记住密码</label>
                    <a href="home/toFindPassword">忘记密码</a>
                </div>
                <div class="login_btn" >
                    <input type="button" value="登录" onclick="checkForm()" onkeydown="enterHandler(window.event);"/>
                </div>
            </form>
        </div>
    </div>
    <div id="footer">
        <p>版权所有 ©2000-2021　宁波德魏医疗器械有限公司</p>
    </div>
</div>
<script src="${rc.contextPath}/newframe/js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="${rc.contextPath}/newframe/js/placeholderfriend.js" type="text/javascript"></script>
<script src="${newframe}/js/AESE/aesutil.js"></script>
<script src="${newframe}/js/AESE/crypto-js.js"></script>
<script type="text/javascript">
  function checkForm(){
    if($("#account").val()=="账号" || $("#pwd").val()=="密码" || $("#account").val()=="" || $("#pwd").val()==""){
      alert("请输入帐号密码");
      return false;
    }
    var passwordBefore = $("#pwd").val();
    var passwordAfter = AESEncrypt(passwordBefore,"anUqKhuAQzVYLnhT");
    $("#pwd").val(passwordAfter);
    $("#myForm").submit();
  }
  $(function(){
    if (window.PIE) {
      $('.rounded').each(function() {
        PIE.attach(this);
      });
    }
    if("${errorMsg}"!=null && "${errorMsg}"!=""){
      alert("${errorMsg}");
    }
  });
  //回车事件绑定
  $("body").bind("keyup",function(event) {
    if(event.keyCode==13){
      checkForm();
    }
  });
</script>
</body>
</html>